/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright 2009 - 2012 Luca Mingardi.
 *
 * This file is part of jeeObserver.
 *
 * JeeObserver is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * JeeObserver is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */
package jeeobserver.server;

import java.util.Collection;
import jeeobserver.ActionObserver;
import jeeobserver.HardDiskObserver;
import jeeobserver.HttpSessionObserver;
import jeeobserver.JvmObserver;
import jeeobserver.server.settings.Settings;

/**
 * The Interface DatabaseHandler.
 *
 * @author Luca Mingardi
 * @version 4.0
 */
public interface DatabaseHandler {

	public void persistActionStatistics(Collection<ActionObserver> observers) throws JeeObserverServerException;

	public void deleteActionStatistics(ActionParameters.DeleteStatisticsParameter parameters) throws JeeObserverServerException;

	public Collection<ActionStatistics.Element> searchActionElements(ActionParameters.SearchElementsParameter parameters) throws JeeObserverServerException;

	public Collection<ActionStatistics> searchActionStatistics(ActionParameters.SearchStatisticsParameter parameters) throws JeeObserverServerException;

	public void persistHttpSessionStatistics(Collection<HttpSessionObserver> observers) throws JeeObserverServerException;

	public void deleteHttpSessionStatistics(HttpSessionParameters.DeleteStatisticsParameter parameters) throws JeeObserverServerException;

	public Collection<HttpSessionStatistics> searchHttpSessionStatistics(HttpSessionParameters.SearchStatisticsParameter parameters) throws JeeObserverServerException;

	public Collection<HttpSessionStatistics.Element> searchHttpSessionElements(HttpSessionParameters.SearchElementsParameter parameters) throws JeeObserverServerException;

	public void persistJvmStatistics(Collection<JvmObserver> observers) throws JeeObserverServerException;

	public void deleteJvmStatistics(JvmParameters.DeleteStatisticsParameter parameters) throws JeeObserverServerException;

	public Collection<JvmStatistics.Element> searchJvmElements(JvmParameters.SearchElementsParameter parameters) throws JeeObserverServerException;

	public Collection<JvmStatistics> searchJvmStatistics(JvmParameters.SearchStatisticsParameter parameters) throws JeeObserverServerException;

	public void persistHardDiskStatistics(Collection<HardDiskObserver> observers) throws JeeObserverServerException;

	public void deleteHardDiskStatistics(HardDiskParameters.DeleteStatisticsParameter parameters) throws JeeObserverServerException;

	public Collection<HardDiskStatistics.Element> searchHardDiskElements(HardDiskParameters.SearchElementsParameter parameters) throws JeeObserverServerException;

	public Collection<HardDiskStatistics> searchHardDiskStatistics(HardDiskParameters.SearchStatisticsParameter parameters) throws JeeObserverServerException;

	public Settings loadSettings() throws JeeObserverServerException;

	public void updateSettings(Settings settings) throws JeeObserverServerException;
}
